<h3>Assign Roles</h3>

<table>
<% @all_roles.each do |role| %>


  <tr>
    <td><input type="checkbox" id="user_roles_<%= role.id %>" name="user[roles][]" value="<%= role.id %>" 
      <% if @user.roles.include?(role) %>
        checked="checked"
      <% end %>
    />
    <%= link_if_authorized(role.name, {:controller => "role", :action => "show", :id => role}, {:show_text => true}) %>
    &raquo; 
    <%= trimstring(role.description,70) %>
    </td>
  </tr>
<% end %>

<% if submit %>
 <tr><td>&nbsp;</td></tr>
 <tr><td><%= image_submit_tag "/themes/odotclassic/images/btn_saveroles.png", :alt => 'Save', :border => 0 %></td></tr>
<% end %>
</table>
